<?php
/**
 * Source code under Creative Commons License 
 * (see LICENSE FILE)
 *
 * Copyright (c) 2013 Maelstrom.
 * All rights reserved.
 *
 *
 * @author      Maelstrom <devcreamframework@gmail.com>
 * @copyright   2012 Maelstrom.
 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @link        https://github.com/maelstromkd/cream-dev.git
 * @version     1.2
 */

/**
 * Include main librairies.
 */
require realpath(dirname(__FILE__)) . '/../../core/paths.php';
require __CORE__ . 'core.php';

if(!empty($_GET['action']) and $_GET['action'] == 'del'){
	file_put_contents(__LOGS__,'');
}

$output = '';
$php_logs_file = file(__LOGS__);

if(!empty($php_logs_file)){ 
	foreach ($php_logs_file as $line) { 
		$output .= '<p style="border-bottom:dashed 1px #ddd; margin:15px 0; font-size: 11px; font-family:arial">' . $line . '</p>';
	}
}

echo $output;
